# coding: UTF-8
# @Date    ：2024/10/15 16:21 
# @File    : __init__.py.py
# :Author:  fum
# 查询逻辑层
from sqlalchemy import text

from extensions.ext_database import db

# def get_user_by_id(user_id):
#     result = db.session.execute(text("SELECT * FROM users WHERE id = :id"), {"id": user_id})
#     return result.fetchone()  # 返回单个用户记录
